﻿


public class TypeDefine
{
    public enum ELanguageType
    {
        CN = 0,
        US = 1,
        JP = 2,
        TH = 3,
        MY = 4,
        NUM,
    }


    public static UnityEngine.Vector2 RogueLikeSize = new UnityEngine.Vector2(25, 25);
    public static UnityEngine.Vector2 RogueLikeMiniSize = new UnityEngine.Vector2(5, 5);
    public static float CommonScale = 0.0001f;
    public static float CommonTimeScale = 0.001f;
    public static float CommomPercent = 0.01f;
    public static float CommomPrent = 0.1f;
    public static long GetRealID(long nID, long nLevel)
    {
        return nID * 1000 + nLevel;
    }
    public static long GetRealContractID(long nID, long nLevel)
    {
        return nID * 100 + nLevel;
    }
    public static int GetRealLevel(long nID)
    {
        return (int)(nID % 1000);
    }

    public static long GetMainID(long nID)
    {
        return nID / 1000;
    }

    public static int GetRealItemType(long nID)
    {
        return (int)nID / 10000000;
    }

    public static int GetRealEquipSubType(long nID)
    {
        return (int)(nID / 1000000) % 10;
    }

    public static int GetRealItemSubType(long nID)
    {
        return (int)(nID / 100000) % 10;
    }

    public static int GetItemType(long nID)
    {
        return (int)(nID / 100000);
    }

}

